﻿@model IEnumerable<WeberTimeTracker.Models.Report_Employee>

<table>
  <tr>
	<th>Employee</th>
	<th>Project</th>
	<th>Hours</th>
  </tr>
@{
	decimal total = 0;

	foreach (var item in Model)
	{
		total += item.Hours;
	  <tr>
		<td>
			@Html.DisplayFor(modelItem => item.First_Name)
			@Html.DisplayFor(modelItem => item.Last_Name)
		</td>
		<td>
			@Html.DisplayFor(modelItem => item.Project_Name)
		</td>
		<td>
			@Html.DisplayFor(modelItem => item.Hours)
		</td>
	  </tr>
	}
  <tr>
	<th>Total</th>
	<th></th>
	<th>@total</th>
  </tr>
}
</table>